package com.wans.guli.ware.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.wans.guli.common.utils.PageUtils;
import com.wans.guli.ware.entity.PurchaseEntity;
import com.wans.guli.ware.vo.PurchaseDoneRestVO;
import com.wans.guli.ware.vo.PurchaseMergeRestVO;
import com.wans.guli.ware.vo.PurchaseUnreceiveRespVO;

import java.util.List;
import java.util.Map;

/**
 * 采购信息
 *
 * @author wans
 * @email wansconst@163.com
 * @date 2025-08-01 16:31:01
 */
public interface PurchaseService extends IService<PurchaseEntity> {

    PageUtils queryPage(Map<String, Object> params);

    PageUtils listUnreceive();

    /**
     * 合并采购需求
     * @param mergeVO 参数 采购单id 需求单ids
     */
    void mergePurchaseItems(PurchaseMergeRestVO mergeVO);

    /**
     * 领取采购单
     * @param ids 采购单ids
     */
    void received(List<Long> ids);

    /**
     * 完成采购单
     * @param purchaseDoneRestVO 采购单ids
     */
    void done(PurchaseDoneRestVO purchaseDoneRestVO);
}

